package cn.chinawyny.boot.bootdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;

import java.util.Collections;

@ConfigurationPropertiesScan(basePackages = "cn.chinawyny.boot.bootdemo")
@SpringBootApplication
@EnableCaching
@ServletComponentScan(basePackages = "cn.chinawyny.boot.bootdemo.filter")
public class BootDemoApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication();
        springApplication.addPrimarySources(Collections.singleton(BootDemoApplication.class));
        springApplication.setAdditionalProfiles("dev");
        springApplication.run(args);
    }
}
